package cn.mrcode.fd.blog.dto;

/**
 * 回包数据抽象类
 * @author zhuqiang
 */
public class ResData {
    protected boolean success = true; //是否成功
    protected int code; //错误编码
    protected String info; //错误消息

    public ResData(boolean success) {
        this.success = success;
    }

    public ResData(boolean success,int code,String info) {
        this.info = info;
        this.code = code;
        this.success = success;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
